package com.yiyun.blog.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yiyun.blog.dao.dos.Archives;
import com.yiyun.blog.dao.pojo.Article;

import java.util.List;

/**
 * @author Bao
 * @create 2021-12-31-17:10
 *
 * 直接继承了mybatisplus的BaseMapper所以基本的增删改查都不用再写了
 */
public interface ArticleMapper extends BaseMapper<Article> {


    List<Archives> listArchives();

    IPage<Article> listArticle(Page<Article> page,
                               Long categoryId,
                               Long tagId,
                               String year,
                               String month);
}
